@echo off
:: Windows Batch Script to copy files for Docker build

echo Begin copying HTML files...
if exist "nginx\html\dist" rd /s /q "nginx\html\dist"
xcopy /E /I "..\cloud-ui\dist" "nginx\html\dist"

echo Begin copying cloud-gateway...
copy "..\cloud-gateway\target\cloud-gateway.jar" "cloud\gateway\jar\"

echo Begin copying cloud-auth...
copy "..\cloud-auth\target\cloud-auth.jar" "cloud\auth\jar\"

echo Begin copying cloud-visual-monitor...
copy "..\cloud-visual\cloud-monitor\target\cloud-visual-monitor.jar" "cloud\visual\monitor\jar\"

echo Begin copying cloud-modules-system...
copy "..\cloud-modules\cloud-system\target\cloud-modules-system.jar" "cloud\modules\system\jar\"

echo Begin copying cloud-modules-ceshi...
copy "..\cloud-modules\cloud-ceshi\target\cloud-modules-ceshi.jar" "cloud\modules\ceshi\jar\"

echo Begin copying cloud-modules-file...
copy "..\cloud-modules\cloud-file\target\cloud-modules-file.jar" "cloud\modules\file\jar\"

echo Begin copying cloud-modules-job...
copy "..\cloud-modules\cloud-job\target\cloud-modules-job.jar" "cloud\modules\job\jar\"

echo Begin copying cloud-modules-gen...
copy "..\cloud-modules\cloud-gen\target\cloud-modules-gen.jar" "cloud\modules\gen\jar\"

echo All files copied successfully.
pause